import { createApp } from "vue";
import App from "./App.vue";
import antd from "ant-design-vue";
import "ant-design-vue/dist/antd.css";

import rules from "../Util/rules";
import ObjectView from "./Object.vue";

createApp(ObjectView).use(antd).mount("#app");

// console.log(rules('year', '2022a'));
// console.log(rules('number', '2022.213a'));
// console.log(rules('bankNum', '1231231231123123123'));
// console.log(rules('telephone', '021-6811822-2231'));
// console.log(rules([{
//     regExp: "^[-_A-Za-z0-9]+@([_A-Za-z0-9]+\\.)+[A-Za-z0-9]{2,3}$",
//     message: "格式错误"
// }], '123@123.com'));

// console.log(new Function('A', 'return A'))
